/**
 * 小程序配置文件
 */
// var host = "https://pingshif.applinzi.com/"
// var apiUrl = "https://pingshif.applinzi.com/api"

// var host = "https://zjgsdxxcx.applinzi.com/"
// var apiUrl = "https://zjgsdxxcx.applinzi.com/index.php/Api/Gateway/route"
var appid = wx.getAccountInfoSync().miniProgram.appId
// var host = "http://39.101.71.147/doudouyun"
// var apiUrl = "http://39.101.71.147/doudouyun/index.php/Api/Gateway/route"
var host = "http://39.101.71.147/doudouyun"
var apiUrl = "http://39.101.71.147/doudouyun/index.php/Api/Gateway/route"

// var host = "http://127.0.0.1/2/"
// var apiUrl = "http://127.0.0.1/2/index.php/Api/Gateway/route"
var config = {
  //  下面的地址配合云端 Server 工作
  host,
  apiUrl,
  appid,
  imgUploadUrl: `${host}/index.php/Api/Img/uploadOne`,
  // 登录地址，用于建立会话
  loginUrl: `${host}/index.php/Api/Weixin/login_v2`,
  // check check_3rdsession地址，用于验证
  check3RdUrl: `${host}/index.php/Api/Weixin/check_3rdsession`,
  getUserTelUrl: `${host}/index.php/Api/Weixin/get_user_tel`,
  setSessionUrl: `${host}/index.php/Api/Weixin/setOpenid`,
  setSessionUrl: `${host}/index.php/Api/Weixin/getOpenid`
};

module.exports = config
